﻿using BCEntity.TMS.MallInterface.MallOrderGoods;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BCData.TMS.MallInterface.MallOrderGoods
{
    public interface IMallOrderGoodsData
    {
        Task<bool> DeleteAsync(long mallOrderGoodsId);
        Task<bool> DeleteAsync(string mallOrderNo);
        Task<MallOrderGoodsEntity> GetEntityAsync(long mallOrderGoodsId);
        Task<IEnumerable<MallOrderGoodsEntity>> GetGoodsListAsync(string mallOrderNo);
        Task<(IEnumerable<MallOrderGoodsEntity>, int)> GetListAsync(int pageIndex, int pageSize);
        Task<MallOrderGoodsEntity> InsertAsync(MallOrderGoodsEntity entity);
        Task<MallOrderGoodsEntity> UpdateAsync(MallOrderGoodsEntity entity);
    }
}